package com.qa.dom.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.qa.dom.entity.Orderform;
import com.qa.dom.mapper.PackagetableMapper;
import com.qa.dom.entity.Packagetable;
import com.qa.dom.mapper.UsertableMapper;
import com.qa.dom.service.IPackagetableService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 套餐表 服务实现类
 * </p>
 *
 * @author cxj
 * @since 2018-04-24
 */
@Service
public class PackagetableServiceImpl extends ServiceImpl<PackagetableMapper, Packagetable> implements IPackagetableService {
@Resource private UsertableMapper usertableMapper;
@Resource private PackagetableMapper packagetableMapper;
    @Override
    public Orderform myWallet(String phone) {
        return usertableMapper.myWallet(phone);
    }

    @Override
    public Page<Packagetable> setMealList(Page<Packagetable> page1, String phone) {
        page1.setRecords(packagetableMapper.setMealList(page1,phone));
        return page1;
    }

}
